package com.air.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class Order {

  private long id;
  private long userId;
  private long fligthId;


  @JsonFormat(pattern="yyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp createTime;
  private long cost;
  private String tradeNo;
  private Integer payFlag;


  @JsonFormat(pattern="yyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp payTime;
  private int cang;
  private Flight flight;
  private Passenger passenger;


}
